package com.hkts.naturalgasauthentication.base.serviceimpl;


import com.hkts.naturalgasauthentication.base.dao.HontUserPostDao;
import com.hkts.naturalgasauthentication.base.entity.HontUserPost;
import com.hkts.naturalgasauthentication.base.service.HontUserPostService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Slf4j
@Service
@Transactional
public class HontUserPostServiceImpl implements HontUserPostService {

    @Autowired
    private HontUserPostDao hontUserPostDao;


    @Override
    public List<HontUserPost> findByHontUserId(String userId) {
        return hontUserPostDao.findByHontUserId(userId);
    }

    @Override
    public void deleteByHontUserId(String userId) {
        hontUserPostDao.deleteByHontUserId(userId);
    }
}
